import React from 'react';

import Constants from '../../common/Constants';
import CommonRequestDataAction from '../common/CommonRequestDataAction';

//请求帖子列表
export default class QZ_IsAdminAction extends CommonRequestDataAction {
  constructor(props){
    super(props);
    this.moduleType = Constants.MODULE_TYPE.QUAN_ZI;
    this.name = "QZ_IsAdminAction";
  }
  finish(data, isSucceed, response) {
  	if (data) {
  		this.caller.setState({
  			is_admin:data.is_admin===1?true:false,
  		})
  	}
  }
}